﻿
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>
<p id="msg"></p>
<input type="button" onclick="loadData();" value="getList"/>
@ViewBag.Tips

<script type="text/javascript">
    var loadData = function() {
        $.post('/home/getlist',{id:0},function(result) {
            $("#msg").html(result);
        });
    };
</script>